calculating backwards